package com.wxm.api.entity;

import lombok.Data;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wxm
 * @Date 2021/9/23
 */
@Data
public class PokemonEntity {
    private Integer id;
    private String code;

    //名称
    private String name;
    public void setName(String name) {
        this.name = name;
    }

    //属性
    private String property;

    //组别
    private String group;

    //图片
    private List<String> imgs;

    //精力
    private Integer vigor;
    public void setVigor(String vigor) {
        this.vigor = Integer.parseInt(vigor);
    }

    //攻击
    private Integer attack;
    public void setAttack(String attack) {
        this.attack = Integer.parseInt(attack);;
    }

    //防御
    private Integer defense;
    public void setDefense(String defense) {
        this.defense = Integer.parseInt(defense);;
    }

    //魔攻
    private Integer magic;
    public void setMagic(String magic) {
        this.magic = Integer.parseInt(magic);
    }

    //魔抗
    private Integer spellResistance;
    public void setSpellResistance(String spellResistance) {
        this.spellResistance = Integer.parseInt(spellResistance);
    }

    //速度
    private Integer speed;
    public void setSpeed(String speed) {
        this.speed = Integer.parseInt(speed);
    }

    //种族值
    private Integer racialValue;

    //技能
    private List<SkillEntity> skillList;
}
